# -*- coding: utf-8 -*-
<%inherit file="/admin.mako"/>
<%def name="include_local_styles()">
<style type="text/css">  
  .gauge_bar {
    border: 1px solid black;
    width: 250px;
    background-color: #fff;
    color: black;
    padding: 0 !important;
  }  
</style>
</%def>

<p style="text-align: center"><span class="destak">Apura&ccedil;&atilde;o dos Resultados</span></p>
<br/>
%if c.list:
    <% cdmostra = None %>
    %for candidato in c.list:
        %if cdmostra != candidato['cdmostra']:
            <% cdmostra = candidato['cdmostra'] %>
<br/><span class="destak"><strong>${candidato['nmmostra']}</strong></span><br/>
        %endif
<div style="margin-left: 20px">
<strong>${candidato['nmcandidato']}</strong>[${candidato['qtvotos']} voto(os) :: ${candidato['percent']}%
<div class="gauge_bar"><div style="padding: 0; background-color: blue; width: ${candidato['percent']}%;">&nbsp;</div></div>
</div>
    %endfor
%endif
<br/>